<template>
  <div class="header-search-container">
    <div class="search-box" @click="$router.push('/classificationsearch')">
      <span class="icon"></span>
      <span class="search">搜索</span>
      <span class="search-content">菜谱/食谱</span>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.header-search-container {
  height: 45px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  position: fixed;
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 999999;
  background-color: white;

  .search-box {
    height: 30px;
    width: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #bfbfbf;
    background-color: #f7f7f7;

    .icon {
      height: 14px;
      width: 14px;
      margin-right: 10px;
      background-size: cover;
      background-repeat: no-repeat;
      background-image: url('@/assets/home/ic_search.png');
    }

    .search {
      margin-right: 10px;
    }
  }

  .search-box:active .search {
    color: #727272;
  }

  .search-box:active .search-content {
    color: #727272;
  }
}
</style>
